package com.fcscs.cservice.client.common.model.restaurants;

import java.util.Collection;
import java.util.Map;

import com.fcscs.core.gwt.common.CoreConstants;
import com.fcscs.core.gwt.common.EntityModelData;
import com.fcscs.cservice.client.common.CServiceConstants;
import com.fcscs.cservice.domain.Restaurant;

public class RestaurantsModelData extends EntityModelData<Restaurant>{

	public RestaurantsModelData(Restaurant t) {
		super(t);
	}

	@Override
	protected void populateNames(Collection<String> tempNames) {
		tempNames.add(CServiceConstants.RESTAURANT);
		tempNames.add(CoreConstants.DESCRIPTION);
		tempNames.add(CServiceConstants.BUSINESSLOCATION);
		tempNames.add(CServiceConstants.DEFAULTRESPICID);
		tempNames.add(CServiceConstants.AVERAGESPENDING);
		tempNames.add(CServiceConstants.CUISINETYPEID);
		tempNames.add(CoreConstants.FULLTNAME);
	}

	@Override
	protected void populateProps(Map<String, Object> props) {
		props.put(CoreConstants.FULLTNAME, entity.getName());
		props.put(CServiceConstants.RESTAURANT,entity.getName());
		props.put(CoreConstants.DESCRIPTION, entity.getDescription());
		props.put(CServiceConstants.BUSINESSLOCATION, entity.getBusinessLocation());
		props.put(CServiceConstants.DEFAULTRESPICID,entity.getDefaultResPicId());
		props.put(CServiceConstants.AVERAGESPENDING, entity.getAverageSpending());
		props.put(CServiceConstants.CUISINETYPEID, entity.getCuisineTypeId());
	}

	@Override
	protected <X> void setProperty(String property, X value) {
		
	}

}
